package com.ruoyi.service.jpjs.costcode;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface CostCodeService {

    //查询所有成本编码
    List<Map<String, Object>> findCostCodeAll(Map<String, Object> map);

    //根据编码id查询成本编码
    Map<String, Object> findCostCode(String codeId);

    //查询当前编码是否有下级元素
    int findChildLevel(String codeId);

    //新增或者修改编码
    int saveCostCode(Map<String, Object> map);

    //删除成本编码
    int deleteCostCode(String codeId);

    //查询编码编号是否唯一
    int checkCodeNumUnique(Map<String, Object> map);

    //导入成本编码
    int importData(MultipartFile file);
}
